package cn.scu.ne04jdemo.service.imp;

import cn.scu.ne04jdemo.dao.ScheTaskDevInfoMapper;
import cn.scu.ne04jdemo.entitiy.ScheTaskDevInfoEntity;
import cn.scu.ne04jdemo.service.ScheTaskDevInfoService;
import cn.scu.ne04jdemo.vo.ScheTaskDevInfoVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ScheTaskDevInfoServiceImpl extends ServiceImpl<ScheTaskDevInfoMapper, ScheTaskDevInfoEntity> implements ScheTaskDevInfoService {

    @Autowired
    private ScheTaskDevInfoMapper scheTaskDevInfoMapper;

    @Override
    public IPage<ScheTaskDevInfoVo> findPage(String prodTypeId, long current, long size) {
        IPage<ScheTaskDevInfoVo> page = new Page<>();
        page.setCurrent(current);
        page.setSize(size);

        return this.scheTaskDevInfoMapper.findScheTaskDevInfoPage(page, prodTypeId);
    }
}
